﻿using UnityEngine;

public class TransformUtil
{
    public static void RemoveAllChildren(Transform parent)
    {
        for(int i = 0;i < parent.transform.childCount; i++)
        {
            var transform = parent.transform.GetChild(i);
            Object.Destroy(transform.gameObject);
        }
    }

}